package org.lanqiao.tjut.myUtils;

public class MyUtils {

	public static <T> T getNewInstance(Class<T> clazz){
		T t = null;
		try {
			t=clazz.newInstance();
		} catch (Exception e) {
			// 公用方法：实例化对象异常
			System.out.println("公用方法：实例化对象异常:"+ e.getMessage());
		e.printStackTrace();
	}
		return t;
}
}
